const DEV_AGENT = '/mall'
const API = {
  //跨域配置代理名称
  DEV_AGENT: DEV_AGENT,
  //接口根目录
  BASE_URL: 'http://47.96.151.84:8082/wx',
  GET_HOME_INFO: '/home/index',
  // 介绍信息接口
  GET_HOME_ABOUT: '/home/about',
  // 分类目录全部分类接口
  GET_HOME_ClASSIFY: "/catalog/index",
  //  分类商品数据
  GET_ClASSIFY_GOODS: "/goods/category",
 //  商品详情i'goods/detail
  GET_COMMODITY_DETALI: "/goods/detail",
  // 商品列表
  GET_GOODS_LIST: "/goods/list",
  GET_HOME_ABOUT: '/catalog/current',
  // 账号登录接口
  POST_HOME_REGISTER: '/auth/register',
  // 账号注册接口
  //  退出
  POST_HOME_TUCHU: '/auth/logout',
  //登录
  POST_AUTH_LOGIN: '/auth/login',
  //    添加购物车
  POST_CART_ADD: "/cart/add",
  // 购物车列表
  GET_CART_INDEX: "/cart/index",
  // 购物车选择或者取消 cart/checked
  POST_CART_CHECKED: "/cart/checked",
  // 更新购物车
  POST_CART_UPDATE: "/cart/update",
  // 'cart/checkout', // 下单前信息确
  GET_CART_CHECKOUT: "/cart/checkout",
  // 收货地址'address/save'
  POST_ADDRESS_SAVE: "/address/save",
  // 收货地址栏    'address/list'
  GET_ADDRESS_SAVE: "/address/list",
  // 'order/submit购物车下单', // 提交订
  POST_ORDER_SUBMIT: "/order/submit",
  // cart/fastadd', // 点击立即购买商品缓存购买信息
  POST_CART_FASTADD: "/cart/fastadd",
  // ‘order/pay’,//订单支付
  POST_ORDER_PAY: "/order/pay",
  // . 'order/list', //订单列表
  GET_ORDER_LIST: "/order/list",
  // 'order/confirm', //确认收货
  POST_ORDER_CONFIRM: "/order/confirm",
  // 'order/cancel', //取消订单
  POST_ORDER_CANCEL: "/order/cancel",
  // 'order/delete', //删除订单
  POST_ORDER_DELETE: "/order/delete",
  // cart/delete 删除购物车的单号
  POST_CART_DELETE: "/cart/delete",
  // cart/fastadd 
  POST_CART_DELETE: "/cart/delete",
  // . 'collect/addordelete', //添加或取消收藏
  POST_COLLECT_ADDORDELETE: "/collect/addordelete",
   // 'comment/list', //评论列表
  GET_COMMENT_LIST: "/comment/list",
  // . 'order/detail', //订单详情
  GET_ORDER_DETAIL: "/order/detail",
  //   'auth/info',用户信息查询接口
  // 请求方式：get
  // 参数：
  // ①封装 toke
  GET_AUTH_INFO: "/auth/info",
  // 'auth/updateInfo, //用户信息重置
  // 请求方式：post
  POST_AUTH_updateInfo: "/auth/updateInfo",
  // 4. 'comment/post’,//对订单商品添加评论
  POST_COMMENT_POST:"/comment/post",
  // order/refund
  POST_ORDER_REFUND:"/order/refund",
  // . 'collect/list', //收藏列表
GET_COLLECT_LIST:"/collect/list",
// . 'footprint/list', //足迹列表
// 请求方式：get
GET_FOOTPRINT_LIST:"/footprint/list",
// 'footprint/delete', //删除足迹
POST_FOOTPRINT_DELETE:"/footprint/delete",
// 'goods/list', //获得商品列表
GET_GOODS_LIST:"/goods/list",
// 'address/delete', //删除收货地址
POST_ADDRESS_DELETE:"/address/delete"

}

module.exports = API